count inplementation like search request