How to add number of checks in a checkbox field and save into a numeric field?