Merge "[RTT] Add API for number of measurements" into pi-dev