fix get_array_count function in CommonDataCommon