"count" method should not be in abstract base class