Your example is considered you spent 1 year out of the US.
HOWEVER, if CIS came up with that 2 months is not "brief trip", above example may not satisfy 1 year break.
The law says,
8 CFR 214.2 (h) (13) (i) (B)
(B) When an alien in an H classification has spent the maximum allowable period of stay in the United States, a new petition under sections 101(a)(15)(H) or (L) of the Act may not be approved unless that alien has resided and been physically present outside the United States, except for brief trips for business or pleasure, for the time limit imposed on the particular H classification. Brief trips to the United States for business or pleasure during the required time abroad are not interruptive, but do not count towards fulfillment of the required time abroad. The petitioner shall provide information about the alien's employment, place of residence, and the dates and purposes of any trips to the United States during the period that the alien was required to spend time abroad