Removed counters. Code is now more pythonic, as it were.