This method counts the number of the records of this class. It also considers the records in subclasses.
When you create records on the database, they're created as part of a database class. Using this method you can retrieve a count of all records created on the given class. By default, it includes all subclasses. You can also pass it a
Boolean instance to define whether you want it to exclude subclass records.
// METHOD 1 Long OClass().count() // METHOD 2 Long OClass().count(Boolean isPolymorphic)
||Determines whether method includes records of subclasses in the count|
This method returns a
Long instance, which provides the number of records in the database class or class and subclasses.