where every line points out the number of the smell detected (so in my case case 11 for version 1.2; 11 for version 1.3 and so on) and on the x axis i want to put every version that i've under exam.

The problem is that i don't know how to keep trace of a "counter" in r, counting how many smells there are for each version