word count in java (from web)