This function takes no parameters
This method counts how many entries are currently stored in your database. While it may appear to be redundant considering there's also GetMaxEntryId
, there's a small difference between their functions. You see, the entry ID is independent of the number of entries there are. If you create ten entries and then delete one, the highest entry ID will still be ten while there are only nine entries.
On success, this method returns the number of entries in your database.
Otherwise, it returns -1.