testing
Added function to count found elements. Starting function to select appropriate sort