MK-177

aggregation terms's count and default value behave inconsistently
Pull request fix