grep --count thepattern whateverfile