Update test-count.r

Added tests for passing factors and Dates to count.