Just counting the number of functions