count() method

Added the count() method to:
 - ORM;
 - database handler.