According to www.FreeCalorieReport.com there are 240 calories in a 47.9 gram serving of M&Ms.
www.freecaloriereport.com
I would weigh a 47.9 gram portion, and then count how many M&Ms you get for 47.9 grams. Then divide 240 by the number of M&Ms.
Hope that helps!