New Api for History data count2