Simply by created a seperate array with uniq elements you can compare how many times integers were repeated.