how do I count a word in a string "baednbeenbben", it always gives a value of 0
public static void main(String[]args) { String filename