Fix daily count creation error

closes #48