becomes scriptsCount