No, Friendlies don't count. The wordings refer to competitions - official or unofficial.
I tried to copy and paste the actual FIFA commentary for you, but I can't seem to manage to do that.
If you really do want to see what FIFA says on this subject, just Google "FIFA Commentary on the Rules Governing Eligibility to Play for Representative Teams".
It's quite an illuminating read and can dispel the misconceptions that many people seem to have regarding this topic.
Hopefully that link will work for you, if not just copy and paste it to your browser.