i want to count the occurance of word present in document .
eg if i give a word ="hai"
it has to search in file and count number of times the word occurs in file ..i searched various websites but i get only code which counts occurance of all words present in document ..please give me some answers