Include total number of hits in search responses

See #297