how i can use count and count a function