added ability to count changes