how many episodes are in season 4 of gotham