Implements .forEach(), proper error handling, .count(), and tests.