Python Dictionary Count Function For Text