substitute count with find