I've been trying to write a program that reads text from a file and then counts the number of times a certain word occures(such as "if"). I got the part were it reads the text from file but not sure how to count the number of times a word appears. Anyone know of a method on how to do this??
