update number of sprites