returning events total as array