No, the number of rooms has nothing to do with the median. The median is just the numerical midpoint where 1/2 the houses sell below and 1/2 the houses sell above.
Also bear in mind that the unit figures include all strata properties including t/houses and vilas.