Word count with grep
I've got a text file with some data in it and I want to know how many times the letter 'x' occurs in it, my problem is that x occurs many times on one line so I can't use grep -c.
What's the best way to do this? I'm sure there must be a simple solution, but I can't seem to find it!
Thanks for your help.