the rule in words is to divide by 2 then subtract 1...what is the equation if

Input(x) Output(y)
2 0
4 1
6 2
8 3
10 4
I can't get a grip on it...please help!!

Each beginning number is increased by 2 (x + 2), then its pair follows the given rule.