def METHOD_NAME(self):
    """ Update the current state and count state transitions """
    pin_1_state = Gpio.input(self.PIN_1)
    pin_2_state = Gpio.input(self.PIN_2)
    next_state = (pin_1_state, pin_2_state)
    prev_state = self.curr_state
    if self.curr_state != next_state:
        self.count += 1
        self.curr_state = next_state
    if clockwise_state_transitions[prev_state] == self.curr_state:
        self.dir = CLOCKWISE
    elif counterclockwise_state_transitions[prev_state] == self.curr_state:
        self.dir = COUNTERCLOCKWISE