Validation at Form

I have a table that counts the number of repetitions of history in the lookup column. I have created a form with this table and I want it not to allow the person to select that date if it was selected in a historical form that had more than 4 in the table.

Table Link:

Form Link: