I wonder, with 20 Test filter & average of 50, 25 & 30 for spinners how you came to the number of 5 for India!!!
I can count 10 (11) with your filter -
Gavasker, Tendulkar, Dravid, Pujara
Kumble, Bedi, Chandra, Ashwin, Jadeja, Nadkarni, Gupte
Pujara is a current player so his career end might not qualify your filter of GREATNESS, hence I counted 10. Few weeks back Kohli was in this list as well & Kambli missing it by 3 Test. While Ghulam Ahmed & Ojha missing for 0.17 & 0.26 average over 30.
I suggest, you better relax & do proper homework before Talking Cricket. It's not even difficult to run StatGuru to look smart.
Pakistanis seem to be taking solace in the fact that historically they have produced more greats.
Maybe it is to hide from the fact that post 2003 there hasn't even been a great player from Pakistan. The two that could have been - Ajmal and Asif met their ends in a bad way.
Apart from these two how many post 03 debuts from Pakistan average below 25 for a pacer, 30 for a spinner or above 50 for a batsman (of course decent sample size - say 100 wickets and 2000/3000 runs) and can go on to become a great? Zero. For India it is 3 - Ashwin, Jadeja, Pujara (with Kohli at 49)
Even if we relax the criteria a bit to allow for good but not great players - 30 for a pacer, 35 for a spinner, 45 for a batsman it is just two - Yasir Shah and Azhar Ali. From India - Kohli, Rahane and Ojha along with the other 3 names.
Now Ojha is retired so forget him.
Jadeja and Ashwin will always remain below 30 their whole lives since they have so many wickets at a such a low average. For them to get their averages above 30 will mean bowling badly for a long time in which case they will be dropped anyways. (Similar to how Steve Smith won't average below 50 in his life).
Also Rahane, Kohli, Pujara all average 46+ (With Kohli at 49 and Pujara at 50) and are at that age (~28) where a batsman's career takes off so there is a good chance they might finish above 50 (might not too). All three are showing the career trajectory of almost all great/good batsmen (Ponting, YK, Sanga, Amla etc) and are at that point where they are ready to go to the next level (they have already begun imo).
Mind you, Azhar is 32 and is already in that peak and he averages 47 during the peak so his similarity is with players like Gambhir, Trott and Bell who at their peaks averaged late 40s early 50s before declining into the early 40s.
So India have five potential ATGs (using the 25/30/50 criteria) out of which two are sure shot (Ash/Jad) and the batsmen will be good if not ATGs.
Pakistan have 0 potential ATGs and 2 who can be good.
Again there are players like Rahul/Azam etc but these guys don't have a good sample set as of now. (Babar anyways avgs 20 something in test cricket)