added counting of data availability