The number of random surfaces on the lattice and the large-N gauge theory