Can you provide any code demonstrating why/how you are using this? You are performing a SELECT query but can't access the results array to perform a count() in PHP? Which database driver are you using? If MySQL you could probably try $result->resultID->num_rows to access this value.