Count Number Of Ones In Binary Python