In this article, I describe the escount command, which implements the estimation of an endogenous switching model with count-data outcomes, where a potential outcome diers across two alternate treatment statuses. escount al- lows for either a Poisson or a negative binomial regression model with lognormal latent heterogeneity. After estimating the parameters of the switching regression model, one can estimate various treatment effects with the command teescount. I also describe the command lncount, which ts the Poisson or negative binomial regression model with lognormal latent heterogeneity