[Olena-patches] milena r3560: Add ninds() method to image1d class