Using sql_calc_found_rows with prepared statements

I have a pagination class the uses sql_calc_found_rows to get the total row count for the query. However, I am in the process of changing all my queries to prepared statements and now I can’t seem to use sql_cal_found_rows and select found_rows() to get total count.

Do I have to execute a second count(*) query if I am using prepared statements? Or am I just not using the correct syntax to get the count from select found_rows().

$sql = “select sql_calc_found_rows from tbl1 …”)
$prep1 = $link->prepare($sql);
$prep1->execute();

$cnt = $link->query(“select found_rows()”);

I’m retracting the question. It works fine with fetch_array.