Add getCount to Record class