Addded function to count total words for each gentre from old training data.