count method for cars.db