Remove dot notation from count method