Count 1s In A Sorted Binary Arraylist