add count and find function