Can anyone tell me how to get the value of the transmitted number of tokens in the smart contract on the Waves platform?

The documentation is written.

You can just use the "." symbol:

(...) extract (mTx) .bodyBytes (...)

(...) tx.transfers [1] .amount (...)

but I don't understand how to insert it into smart assets code

    0