Thank you. I have updated the question.I think it is more clear now.
In reply to Re^2: Listing occurence of all residues by sreya in thread Listing occurence of all residues by sreya