Rewrite of type statistics.