(Quick Reference)

count

Purpose

Counts the number of instances in the database and returns the result

Examples

def noOfBooks = Book.count()