Try something like print(str(value).count('1')) as count() is a method of str or list objects (and not int)
value = 12343211122321
print(value.count(1))
The count() function does not tell me how many time the number 1 is in the value variable.
What do I have to do?
How to count how many times a number occurs in a very large number