acf flexible content get the next row code example
Example: have_rows count acf php
$numrows = count( get_field( 'field_name', 'post_id' ) );
// post_id isn't need but required in some situations
$numrows = count( get_field( 'field_name', 'post_id' ) );
// post_id isn't need but required in some situations