Statistics of visits to sites in random walks