So you want to know the number of bannedwords? At the top post you read said file of banned.txt. Now have a variable initialized to zero and there you have at line 36 you increment i. That's your word count.
Sorry but no I have not written anything about the area around line 36 or commented that it doesn't look like you are reading in any words. I leave this incomplete code for you to finish.