Count occurences of character X in all files in current directory

If you ever need to count the occurences of a character in all (or some) files, this next series of commands would come in handy:

Replace X with the character in question. The command is all in one line. “ls” can be replaced with a more specific list (eg: …