Please Help me,

I need to limit Max no. of tick box/checkbox selection in a column.
1. Max no. of selection for a department to be limited.
2. Tick Box selection limit to be controlled by a Cell Value for each department

Sample file is attached here
[enter link description here](https://drive.google.com/open?id=12oXmjM1P61nCk6JjKDDHtYH0TPZDF7jcPII4srpDsHk).