Module r.area reclassifies raster areas (created typically with r.clump) to values representing their size (in cells). Additionally, it can be used to remove areas smaller or greater than a treshold.
If areas belonging to a certain category are not continuous every area belonging to the same category has the same area value.