in reply to Redirecting a file to another file

I would like to redirect a file in to another file

It's not really clear what this means - perhaps you want link?

and see the number of occurrences there are within the file.

It's not really clear what this means - perhaps you want grep or just length?