making sure totalCount in response header from API does not include bodiless entities