DRY up a bit.
Correct a tyop.
Add notes to myself.
Ignore whitespace lines in counts.
Separate out complexity a bit.