Fixed bug that was causing the counts to display incorrectly.