add getNumberOfShapes to scripting api

[#57165738]
rutherford interactive better tracing and scaling

[#57165738]