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 remote-tracking branch 'richierocks/master' into develop