Essay Counter question

My dad gave me an assignment to do and I have no idea how to do this, I am just a beginner but this is quite difficult to do.
Scenario: If you were given an essay, and someone wanted to know how many H's or L's or any letters are in it, how would you do it?

Yes, once again pointless but nonetheless assigned to me. He said I should go onto forums to figure out stuff so it's what I am doing.
Open the file.
Read it one character at a time.
If the character read matches H or L, increment a counter.

Repeat until EOF reached.
Output counter.
Topic archived. No new replies allowed.