added countable for record class