This exposes the value of cv_numlaps.value as a global variable. For use within scripts. Good enough alternative until the ability to read cvars happens, If it ever does in the future.
cv_numlaps.value