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.
You have to write a code that takes this string as an input and returns a total number of dashes.
A string of integers
Number of dashes in the string
String message will contain at least one digit, but not more than 100
Each character in the code will be a digit ('0'-'9').