Naive implementation of instrumenting a function to gather line execution counts (without esprima)