The idea was derived from finding that the number of lines corresponds to the actual number when displaying 4, 5, and 6.