My problem is that python only counts occurrences with the amount of chars it searches.
a = "01010101"
print(a.count("010"))
Pythons string count here ends with 2. But from what i count there are 3 occurrences.
#x = "01010101"
#     --- <-- occurrence 1
#       ---  <-- occurrence 2
#         ---  <-- occurrence 3
May some one please point me in the right direction on what i do wrong, as i would require the result to be 3 not 2.
 
     
     
    