API-162 - add count functionality. Also adds ActiveRecord-like find method

https://clever.atlassian.net/browse/API-162