placed a metric noofcalls in the right place to carry out the emperical analysis of the algorithm