WP-4610: Adjust how we get the counters. Fix line endings.