counting occurences of same seq and adding it in object