in reply to Redirecting a file to another file

Taking a guess at what you mean:

tee can "redirect", and
grep (with the -c option) can "see the number of occurrences".

                All power corrupts, but we need electricity.