Update count.r

Changed test from `is.vector` to `is.atomic`, in order to fix Issue 130.
Update test-count.r

Added tests for passing factors and Dates to count.
Bug fix to #130
Merge pull request #163 from richierocks/master

Fixes for Issue 130