Demonstration code of N threads incrementing a tally.