Added method allowing count using criteria instead of returning all results