h_glm_count function

Helper functions for Poisson models