Ability to change count date. Moved count creation code.