new api to get total number of data entry