move doxygen comment for COUNTOF() into ifndef'ed section

that is done to not confuse IDEs that do some static analysis