added getCount() to genericDao and getBatch to contactDao