in reply to oneliner to count the number binary digits in this string 1011111
Where is your attempt?
Dave