how many episodes are in season 6 of once upon a time