bug 1564 - fix incorrect student counts