HIVE-10351 : CBO (Calcite Return Path):Handle count ( * ) case for cbo return path (Ashutosh Chauhan)