automatically detect feature count and tag count. this is done through a loop through the whole training set.