Field code
{issue.cfnnnnn}
Field code
issue?.customfield_nnnnn

You can also use the issue's comment object: issue?.comments?.length

Read

Returned valueNumber of comments for an issue. 
Output data type

NUMBER

Example output7

If you still have questions, feel free to refer to our support team.