Have you read the documentation, or the second linked topic? Tokens are not variables.
If you want to set an integer variable to the output of a token (which, again, is always literal text), you need to use the "Convert Text/Token" field (note that it mentions "Token" specifically), not the "Another Variable" field.
If you're not doing math or storing the value for later, you don't need to involve variables at all, as you can output directly to the log using the "Write a Value to the Event Log" action, or have it spoken by the "Say Something with Text-To-Speech" action.