Adding Repository::count() method