Beginner: How many inputs?

Talking about the Mega:

Just to confirm, can I have 8 analog inputs, and 38 digital inputs in one device with the Mega?

The docs state 54 IO pins, so 54 - 8 analogue = 46 left.

Really? I see 54 digital and 16 analogue pins...