At 16 in on-center you need 9 studs for a 10 ft wall (120/16=7.5 plus 1 end stud plus 1 extra). At 24 in oc you need 6 studs. Add 3 extra per corner intersection and 2 per door or window for jack and king studs.
Should I use 16 or 24 inch spacing?
Use 16 in oc for exterior and load-bearing walls - it aligns with drywall and sheathing and meets code in most places. 24 in oc saves lumber and is allowed for non-bearing interior walls with 5/8 in drywall. Check local code.
How many top plates do I need?
You need triple the wall length in linear feet: two top plates and one bottom plate. For a 20 ft wall that's 60 linear ft of plate. Add extra for overlaps at corners and intersections - cut 2x4s at 8,10,12 ft to minimize waste.