Debug in count() method