Added count: & count:withPredicate: functions to Repository class