MySql: using $collection->count() instead of count($collection) now