A /24 holds 256 addresses; two are reserved (network and broadcast), leaving 254 usable. 256 counts the reserved pair, 255 forgets the broadcast address, and 253 wrongly reserves the gateway — the gateway simply uses one of the 254 usable addresses.
Official docs