Apparatus and method for monitoring traffic