Turns string to array, then get the length of the array.specifies if looking for only unique values (.uniq)