HPCC-9762 Optimize COUNT(ITERATE(ds)) to COUNT(ds)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>