how to find total number of functions