Merge "Select event counter based on the maxSampleRate" into sc-dev