implement fgrep_count
fix fgrep with /foo$/ pattern, with file without newline  at the end
Code clean-up warnings: -fwarn-name-shadowing
do not split input into lines

Instead, split with record separator.