Made the COUNT clause in PS LOOP evaluate its term before counting (and skip nil)