Finding wordcount/frequency with a given text file

intDict is what i automatically thought to use but the assignment specifically asks to accomplish without using it, which was my reason for struggling.