A theatre has one seat in its first row, two in its second, and one more in each new row. How can a function count every seat while handling just one row at a time?