number of episodes in the flash season 4