Fixed Collection::count() always returning 0

Wrong member variable
Merge pull request #158 from rewandy/working

Fixed Collection::count() always returning 0