fixed a problem where total spam and ham word counts were wrong.