Hello, so I'm kinda new to Visual Basic. I have a problem and I don't know how to solve. Here's a picture.

As you see, I've generated a field containing a set of 0's and 1's in the Listbox. What my problem is, counting the "11" in the items. The #'s said in the label is the mines which is the number of 11's that the listbox contains. Can someone help me with the code? It will help me a lot. Also, if i press Generate, the 0's and 1's are randomized so it will count again. Any help?

As you see, I've generated a field containing a set of 0's and 1's in the Listbox. What my problem is, counting the "11" in the items. The #'s said in the label is the mines which is the number of 11's that the listbox contains. Can someone help me with the code? It will help me a lot. Also, if i press Generate, the 0's and 1's are randomized so it will count again. Any help?