count and getdata