triangular number sequence

This does what digit_count does but better.