Fixed Collection::count() always returning 0

Wrong member variable