use http request to get num of nodes