Added a way to actually count the items in the database