Added support for the -c (count matches) option. Made it so it works just like