Fix issue with mysqli_close() and enable count