Java Program For String Occurrence Counter