Events per variable (EPV)
A rule of thumb for sample size in logistic and Cox regression: for each predictor at least about 10 cases with the rarer outcome should be available. The smaller of the two groups is decisive.
Example: 80 people with the event allow by the rule at most 80/10 = 8 predictors, no matter how many people are in the study overall.
Caution: The number 10 is a habit. Newer work recommends calculating the sample size from the desired precision of the prediction.