Re-adding andrew's counter method that I may have removed...