Check how many checkboxes are selected

Check how many checkboxes are selected

Help please. Total Newb here. 

I have several checkboxes in my Leads module. I want to confirm that more than 3 boxes have been checked when a user creates or edits the record. Any ideas how I do that?