This is the ThingsDB documentation for version v0, click here for the latest version!
Returns the number of instances of a given Type within a collection.
This function does not generate an event.
type_count(type)
| Argument | Type | Description |
|---|---|---|
| type | str | The name of the Type for which the number of instances must be returned. |
An int representing the number of occurrences.