The number of vector elements in the map has to match the number of records in the table. Normally in Ilwis this is always true because domain of the vector map is the domain of the attribute table and thus these counts are identical. You could check there if this is true ( should be). Without seeing the data it is difficult to see what is going on so I can only guess (deleted polygons?).