If we are to do it, I'd rather put the results in the JS object. Ie. elgg.profile.queryCount and that add script that reads that and displays in console when necessary.

Also AFAIR, console.log did not exist in old versions of IE. Would need to add fake implementation if not defined to avoid unnecessary errors.