Consider a finite state machine as usual, but every transition, it can also update an integer counter by adding or subtracting a number. Say, a transition function of the form $\delta(q,a) = (p,k)$ moves to the new state $p$, and add $k$ to the counter, where $k \in \mathbb{Z}$ (so $k$ can be positive, negative, or zero).
A string is accepted if the final state and the counter value is in $F$, where $F$ is a finite set of pairs of states and counter values.
Is this model known? I could not find any reference of this particular extension.