bug fix for displaying counts and calculating accuracy