mg count