Add counting() to reduce() example