Fixed Collection::count() always returning 0