Added --number-found option to print number of results to stdout and exit.