Adds stat counting variables