I've got a page which is displaying information based on a playa entry within a matrix field, when using the matrix :search parameter, this works as intended. But I need to be able to use the {count} tag. The problem is that the image thumbnails and information for each matching entry are simply looping, so the {count} just displays 1 for each of the returned results. I would like them to be 1, 2, 3, 4 etc. I have tried all the other Matrix tags, such as {row_count}, {total_rows}, {field_row_index} etc. but none of these do the job.
If any one could offer any guidance, or other ways round this, I'd be grateful. Thanks.
{exp:channel:entries channel='profile-entry' disable="member_data|pagination|categories" orderby="surname" sort="asc" dynamic="no"}
{services_new search:parent="{segment_3}"}<!-- Matrix Entry, 'parent' is the Playa column within it-->
<!-- Playa 'related' fields that match segment_3-->
<a href="{site_url}our-people/{url_title}" class="{if {count} == 1}col4 firstfour firstthree firsttwo {/if}{if {count} == 2}col4{/if}{if {count} == 3}col4 firsttwo{/if}">
<img src="{profile-portrait}" alt="{title} Profile Picture" width="100%" />
<h3>{title}</h3>
<h3 class="title">{profile-position}</h3>
</a>
{/services_new}
{/exp:channel:entries}