performance tracker update and counter added to wordcount example