Extracted the number of scripts