Is it possible to convert a number in a tag into a score using a macro?

Say that there's an entity with the tag "number.5", could I store the 5 in a score?

Continue to help post