# count

fun count(op: Op<Boolean>? = null): Long

Counts the amount of Entity instances that conform to the op conditional expression.

#### Return

The amount of entities that conform to this condition.

#### Parameters

op

The conditional expression to use when selecting the entity.

#### Samples

org.jetbrains.exposed.sql.tests.h2.MultiDatabaseEntityTest.crossReferencesProhibitedForEntitiesFromDifferentDB