For EE it counts all years of experience in total in all NOC 0, A or B.
For FSW years in primary occupation do matter (also NOC 0, A or B)
All of them should be within past 10 years.
Don't forget it should be full time (30 hours per week or more) or part-time equivalent.
And you may also check here
canadavisa.com/canada-immigration-discussion-board/work-experience-need-clarification-t297693.0.html;msg4356484#msg4356484