emission count function implemented