count even bug fixes