# SearchResultsCount

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SearchResultsCount/

The number of objects found in one group of search results.

- **Full name:** `MFiles.SearchResultsCount`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-group_id"></a>`group_id` | `int32` | 1 | The group that was counted: an object type ID, or -100 for all object types. |
| <a id="f-flags"></a>`flags` | [`SRCOUNTFLAGS`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SRCOUNTFLAGS/index.md) | 2 | How to read `count`: `exact_measure` if exact, `more_than` if more objects match. |
| <a id="f-count"></a>`count` | `uint32` | 3 | The number of matching objects. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSearch.GetFolderObjectsCount](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md): Gets the count of objects in the specified folder.
- [IRPCSearch.GetObjectCountInSearch](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetObjectCountInSearch/index.md): Counts the objects that match the given conditions without returning them.

<a id="used-in-fields"></a>

## Used in fields

- [`GetFolderObjectsCountResponse.psrcountarr`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md#response): Resulting search results counts.
- [`GetObjectCountInSearchResponse.psrcountarr`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetObjectCountInSearch/index.md#response): One count, with `group_id` -100 (all object types). `flags.exact_measure` means `count` is exact; `flags.more_than` means more objects match than `count`.
