Method of moments for a binomial with unknown count
Each batch runs some fixed but unknown number of independent attempts , each succeeding with unknown probability , and you only ever record the total number of successes per batch. That total is Binomial. Across many batches the sample mean is and the sample variance is .
Use the method of moments to estimate and .