For school i had to make an assignment, which i handed in already, but the code i wrote is awful, i don't like what i ended up with. So, I'm curious, what would be considered the best possible way to solve the following question in C#:
'//4 How many times does “queen” occur in the Alice in Wonderland book? Write some code to count them.'
link to the book (pastebin): book
my code (pastebin): my code (ugly)
please when writing your answer, ignore my code. also, explain what your code does, and why you think it's the best possible solution. The amount of times the word "queen" occurs in the book should be 76.