Add schemas code, second attempt.

Isn't `hist.counts.toList(0)._1` just the same as `clas`?