IBM Interview Question

Java code for counting a specific word in a given string.