algorithm for finding the number of 1s in a matrix (only vertical 1s). The image is self explanatory that what i exactly want. : [Algorithm is required for Finding the group of 1s in a matrix, but the group of 1s should contain only vertical entry][1]


  [1]: https://i.stack.imgur.com/xtegh.png
