Adds tests for and implements  error
Adds counting functionality
Merge pull request #1 from mgmeyers/count

Implements Count