Counting how often code runs

Run time can be compared without a clock by counting how many times a statement runs, and that count grows with the input, once per item for a single loop and about n times n for two nested loops over n items.

From AP Computer Science A.