You can use variables with Text Widgets to display statistics of your choosing. When editing a Text Widget, you can add text variables of your choosing by using the dropdown menu on the right labelled, "Insert Statistic."
Alternatively, you can type the variables in yourself. For a full list of variables that you can choose from, press the "?" button on the right, or see this handy page.
Variables are converted to statistics immediately upon exiting the editor. For example, %TotalKeys% (%RankKeys%) will display the total number of keys you have typed, and your rank in parentheses. You can add as many variables as you wish to any text widget.