Predicting the number of viable autocatalytic sets in systems that combine catalysis and inhibition