I was wondering how to count the number of a specific character in each line by some text processing utilities?
For example, to count " in each line of the following text
"hello!"
Thank you!
The first line has two, and the second line has 0.
Another example is to count
(
in each line.