read a txt file,and get how many times does ‘java’ appears