Nonparametric inference on the number of equilibria