The PMA_DBI_num_rows() function is implemented in one of the dbi libraries, which are located under phpmyadmin/libraries/dbi
They should be part of any phpMyAdmin installation, so I'm wondering if you have an incomplete or damaged installation.
phpMyAdmin will load one of its dbi drivers depending on the value of the extension, in your config file:
$cfg['Servers'][$i]['extension'] = 'mysqli';
Here's where it loads the dbi, from code in libraries/database_interface.lib.php:
include_once './libraries/dbi/'
. $GLOBALS['cfg']['Server']['extension'] . '.dbi.lib.php';
So either you have misconfigured your config file with an unknown value for extension, or else you are missing the file corresponding to a valid extension.
The valid values for extension are 'mysql', 'mysqli', and 'drizzle'.