return number of replica