Test if length is greater than 2, then loop and see how many instances of String x appears