Add X-Total-Count header support

Very useful for full JS application working with a search API.