Overload the behavior of count() when called on certain objects [duplicate] Overload the behavior of count() when called on certain objects [duplicate] php php