function getTotalCount(response) {
  let range = response.headers['content-range'];
  let index = range.indexOf('/');
  let totalCount = range.substring(index + 1);
  return parseInt(totalCount, 10);
}
function getTotalCount(response) {
  let range = response.headers['content-range'];
  let index = range.indexOf('/');
  let totalCount = range.substring(index + 1);
  return parseInt(totalCount, 10);
}
function getTotalCount ( response ) { let range = response . headers [ 'content-range' ] ; let index = range . indexOf ( '/' ) ; let totalCount = range . substring ( index + 1 ) ; return parseInt ( totalCount , 10 ) ; }
/*
Parses Content-range header and returns response count
/ * Parses Content - range header and returns response count