This is a class that returns an integer to let the text fit in a TextView.