ND/MN 150 Credits Requirement - Do community college credits count?

I will be graduating next year with close to 150 credits. I am wondering if anyone would know if community college credits count towards the 150 credit requirement for MN and/or ND? Are there any other rules regarding this, such as the credits have to be transferred to a 4 year college, ect. Thanks