How to count the number of selected check box options?