count_unrecognized_commands: efficiency & readability

removed hook_connect, redundant

rearranged hook_unrecognized_command for better logging and readability