count fn