Hyperledger fabric Rich Query: How to count number of record filtered by selector? : I'm making smart contract with Golang and I want to use Rich Query to get total count of records from CouchDB filtered by some selector like:

 `{\"selector\":{\"doc_type\": \"person\"}}`

It is similar to:

`select count(*) from tb where ...` 

as SQL query but how to do it with CouchDB? Can somebody help me please? Thanks 