Added -e command line option to expect a given number of hits, and return