Get the statistics of a text.