Fixed Collection::count() always returning 0

Wrong member variable (fixes #157)