This is the ThingsDB documentation for version v0, click here for the latest version!

type_count

Returns the number of instances of a given Type within a collection.

This function does not generate an event.

Function

type_count(type)

Arguments

Argument Type Description
type str The name of the Type for which the number of instances must be returned.

Return value

An int representing the number of occurrences.