CSS cant "read" the dom if that is what you are asking?
I dont think I understand the question otherwise :D
Looks like this is an ATS specific question. That took me a minute to figure out. In the future, please include the context of what you're trying to achieve in your question.
Per my colleague: you can use return javascript integer that would take the output of the get text action and use js to parse it to an integer.
I'm not fully versed in ATS but I hope that gets you moving in the right direction.