better counting of items in database manager

better counting in header of database manager