Python Dictionary Count Function For String