Yes of course they count for Contributory Pension.
If you haven't already got a statement of contributions from SP, request one from welfare.ie just to be sure you have 520 contributions which is the basic requirement. You may be entitled to a part State Contributory pension.