Counting characters of upper triangular groups