The magnetic field direction and direction of induced current in a wire are related by the right hand grip rule. Since the magnetic field was upwards, the thumb points upwards and the fingers curl around it. When viewed from above, it is seen as a current flowing in the counter clockwise direction.