While the Iraqi army has had a hard time getting organized as a professional and effective fighting force, the same is not the case with the new Afghan army. Although the Afghans have only has some 15,000 troops now, they are well trained, well led, and effective in combat. In another five years, the Afghan army will reach its full strength of 70,000.
The Afghans have some of the same problems as the Iraqis, namely tribalism and a weak sense of nationalism. With four major ethnic groups (Pushtun, Tajik, Uzbek and Hazara), and dozens of powerful tribal organizations, its been difficult to get Afghan recruits who are willing to serve in the national interest. Ethnic and tribal loyalties are always stronger. But European colonizers proved in the 19th century that, with good training and good NCOs and officers, you can produce combat units from tribal warriors that can match Western ones in effectiveness. The key problem is getting effective NCOs. Its the sergeants that supervise the troops, and keep order in the barracks. Professional NCOs have been the secret to success in Western armies. However, the NCOs must be slowly developed, by selecting recruits who have leadership and management skills, and training them, on the job, over several years. It takes 3-5 years to get a suitable recruit to the point where he can handle the job of the lowest level sergeant (in charge of a squad of 10-12 troops.) Another 3-5 years gets you an NCO that can handle a platoon (which is usually led by a lieutenant, who depends on the platoon sergeant a lot.) Another five years gets you a company 1st sergeant. This NCO assists the officer commanding the company, and supervises the other twenty or so NCOs in the company.
Of course, Western nations have, in major wars, had to develop NCOs a lot more quickly. This was the case in the two World Wars, and as recently as the Vietnam war. When you are conscripting a lot of troops and creating many new units, the number of experienced soldiers is spread pretty thin. So you get shake and bake NCOs. These are young men (and some women) who have the leadership and management skills who are first selected (using tests and their performance in training), and then given some training on what NCOs do and how they do it. During World War II, there were many platoon and 1st sergeants in their 20s who did quite well, after on 2-3 years in service.
In Afghanistan, you had a lot of men who have been fighting for over two decades. Lots of good NCO material. But the concept of the Western NCO (a professional supervisor who is respected and well paid) is largely unknown in Afghanistan. The old Afghan army was based largely on the Soviet model, which treated most NCOs as senior privates and left most of the supervisory duties to officers. Most of the Afghan men with combat experience, however, were not in the army, but in tribal war parties (usually squad or platoon size). Here, many of them they gained good NCO type experience at the squad and platoon sergeant level. These men have been found and given some training for squad and platoon sergeant positions. Those that are at the platoon sergeant level, and are also literate, are being used as 1st sergeants (who have to handle some paperwork).
Another advantage the Afghans have over the Iraqis is a warrior mentality. Its easier to make the Afghans understand that for an army to work, troops must learn how to use their weapons (and take good care of them), and stand and fight. While Iraq has produced some good soldiers, most Iraqis want nothing to do with fighting. However, with good training and NCOs, just about anyone can be turned into an effective soldier. Unfortunately for Iraq, most of the good NCOs and officers were Sunni Arabs. These men are vulnerable to Saddams enforcers, who are still around and either killing Sunni veterans who join the new army, or threatening those considering it. Thus the Iraqis have a hard time getting experienced Sunni Arabs to serve as NCOs. So in Iraq, NCOs must be developed the hard way, by taking men with potential and having them learn on the job.