How many 1's we get

05AB1E, 5 4 bytes

Thanks a lot to OP! Now I can save a byte

ŸSΘO

Try it online!

Explanation

Ÿ    Inclusive range
 S   Split the string into individual chars
  Θ  (Vectorizes) Does this character == "1"?
   O Sum the resulting list

Python 2, 39 36 bytes

-3 bytes thanks to @SurculoseSputum

lambda a,b:`range(a,b+1)`.count('1')

Try it online!

Python 3, 42 40 bytes

-2 bytes thanks to @JoKing

lambda a,b:f"{*range(a,b),b}".count('1')

Try it online!


Rust+itertools, 42 bytes

|a,b|(a..=b).join("").matches('1').count()

Try it in the Rust Playground!