Return the number of affected versions.
Create and configure a Smart field using this expression in General parsing mode:
%{issue.versions.length}