complete the data count function