Limit the Number of selected Grid in UiPath forms

Hi All,

I am working on UiPath forms where the requirement is to work with grid and maximum selection is 3.

If the user selects more than 3 checkboxes, then it should give an alert message.

can anyone help me with this?