count should be length

Example refers to a count function, which does not exist. Replacing it with length works.
Merge pull request #210 from Habbie/patch-1

count should be length