Why would Amir be in your all teams when he is not even among top 4 pacers currently?
Shami, Bhuvi, Ishant, Abbas all have done better than him recently. Bhuvi was MoM in only test Ind-Pak have won in last 8 years and yet he won't play in SAF, amazing.
Shami who has been best pacer overall in last 3 years doesn't even find a place.
Wondering if you even watch cricket.
If you select such teams only on stats, then probably StatGuru can do the job better. Also, stats doesn't justify 107 or why IND should fail to win 1st Test at Birmingham.
If we consider individual incidents (like that J'burg Test), then probably Imam should make the XII for England phase. BK did bowl well on that tricky wicket, but he was dropped for just the previous Test and his overall bowling in AUS wasn't impressive at all. That 2nd group is not for SAF, rather typical AUS/SAF wickets - I don't think that J'burg wicket represented anything close to what AUS/SAF wicket offers, rather it was like an English seemer, and BK did make the ENG squad.
Shami indeed the closest call and easily could have made the XII in last 2 teams, but he doesn't make it in ENG over Amir, Abbas & BK - StatGuru might say something else. I didn't pick any All-rounder for ENG, therefore 4 pacers can't be selected - one spinner has to be there and depending on the batting line-up (of opponents), one of the spinners must play, hence Shami misses out. He could have made the squad for the other 2 teams, but his AUS tour was poor and at his height he'll struggle in AUS - I went for the younger & faster Hasan, that too as back-up of Bumrah. In IND, pacers role is most with new ball and then may be with old ball, because 3 spinners will bowl 80% of overs - Shami doesn't make it over Amir/Abbas with new ball, or Wahab with old ball.
PAK players never played in IND, therefore for the 3rd team, you or StatGuru can leave every PAK players - I picked my team on possible best combination, otherwise it was quite easy to drop KL for Azhar in IND. But, I don't think that line-up needs couple of stonewallers for home series, one is enough and Pujara is better than Azhar in that regard in IND, while Dhawan can kill some attack on wickets where he can hit though the line with planted feet.
Finally, Amir - for a Test team, we need a complete package to lead the attack. You can't pick your bowling spearhead on horses for courses basis - I indeed considered Ishant, and left him out for Amir. Think it this way - does he make it ahead of BK, Amir & Abbas in UK - no; does he make it over Amir, Wahab, Bumrah in AUS/SAF - may be, but all 3 are faster than him and pace is one thing you'll need in typical AUS wickets. Still, you can replace Hasan with Ishant there for his height.
Finally, in IND - I haven't seen any current PAK player playing in IND and StatGuru is giving blank table, so I went for my judgement and I do believe overall, Amir is the most complete fast bowler of the lot to take the new ball. As mentioned, you can pick Shami over Wahab, but not Abbas - he is brilliant with new ball.
I don't think number of players (from any country) reflects the overall strength of the team, because impact of one Kohli or couple of Ashwin/Jadeja in IND can't be measured just by numbers. As a 2nd thought, I think anyone can drop Asad from IND squad and replace with Nair and I can bet he'll do better there; but if I exchange Kohli with Haris in between PAK-IND teams, imagine where this No. 1 team'll reach outside Asia. Anyway, these teams were my personal picks, based on what I have seen, otherwise running a StatGuru isn't that tough you know. I have picked Saha as WK for all 3 teams, when IND itself doesn't pick him - so, I guess you have the clue that I don't pick teams on Stat value.
Hope you are relaxed from your wonders.