Added word-count test exercise in Java track and supporting example.java

Hello @kytrinyx,

I have added word-count exercise for java track. Please take a look!

Thank you,
Sagar