Comment implémenter les impliments dénombrables PHP

namespace App;

class MyClass implements Countable {
    public function count() {
    //return count
    }
}
Mohamad