add cnt to index_array_context