If there are handlebars in the stem, measure them with calipers. If not, then accurately measuring an open-face stem can be a bit tough since the opening on the stem or face plate will be smaller than the true diameter and there are some very close sizes, like 25.4 and 26.0mm. If the stem is a 31.8, then it's a no-brainer.