acf count rows code example
Example 1: acf repeater example count
$count = count(get_field('repeater_name'));
Example 2: have_rows count acf php
$numrows = count( get_field( 'field_name', 'post_id' ) );
// post_id isn't need but required in some situations