counting of local elems in a special function