A rewrite of the existing BeeCount code to improve data handling.