Closes #22 by adding metric for number of function calls