added arg for measure count