c'è un modo per fare un inserimento solo se il numero di records è inferiore ad un certo numero?