Counts an inputted character in a user's text file