counting data from url