Puoi portare un contatore ed escludere quelle che a te non servono con degli if.