Use COUNT() instead of an array for the sink.