forgot to uncomment the code that updates counts