Get total number of urls using lua script