HPCC-10541 Add a COUNTER to JOIN

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