[+as.resultNumber+] provides the number of the result.
Same thing for ajax mode with the ajaxResult.tpl.html template.
Phx is not required. The ajaxSearch parser take into account natively the math modifier (and some others. Look at classes/asPhxParser for more details).