Add counters to almost everything. Closes #159