> hm? we do not need any search parameter here, PHPDoc also states none.

Then `count` should be declared as `public function count($search = "") {` - otherwhise `$search` is undefined.