added getCount getDirectCount in basedata