number of operations in a function do I have to count it my self ?

Hi there I would like to count the number of mathematical operations in each function un programmed


Function Div Add Mul

x 0 5 30 y 70 1 0 z 1 7 200

I dont want to count it on my self... I need like a ocunter which counts the operations

I dunno how to make it can any one help me doing it