add count enrollment function