added count in sorted array