I recommend you read the article "Regression Models for Count Data in R", through the following website https://cran.r-project.org/web/packages/pscl/vignettes/countreg.pdf . Exploring the MASS package from R will be a good way to find the answers that you need.