cleaned up counter for readability.