結果 : count elements in sorted array