small appier fix in count method