Well, if you do
Code:
int main(int argc, char* argv[])
argc is the number of arguments passed (0 is the program name). You could use that to see how many files were passed.