Removed testing prints to serr

removed counter variable and prints of that variable.