private int PerformCountRequest(HttpRequest request) { using (HttpClient httpClient = new HttpClient()) { XmlDocument response = httpClient.PerformRequest(request); return(ResponseReader.ReadCountResponse("size", response)); } }