When the count function of the database manager is called, it works as desired, but under certain conditions it throws error messages because a parameter was not passed.
Tested successfully.