You are given a string, which consists of decimal digits (0-9).
Each digit is made of a certain number of dashes, as shown in the image below.
For instance, 1 is made of 2 dashes, 8 is made of 7 dashes and so on.
Write a code that takes string as an Input and returns total number of dashes.
A string of integers
Number of dashes in the string