Whales aren't far from being intelligent enough to form a technical civilization, but their body plan makes it unlikely that they'd use their "fingers" (or fins) to count, or to communicate with other whales.
Even if you gave an alien two human hands and knew that their counting system's base was derived from physical features of their "hands" it's not obvious that they'd come up with either base-5 or base-10 if they where starting from first principles.
We have 3 joints that make up our fingers, but the "base 10" assumes we only use one of those. It's not obvious that even a close relative to humans wouldn't come up with base-20 or base-30 just from counting using their fingers.
If you straighten or bend your wrist to add an "extra" finger for counting you're now counting in base-6 on one hand, base-12 on both. Do the same with your elbow joint and you're base-7 and base-14, respectively.
To assume aliens wouldn't have fingers or do the same thing seems like the odd assumption. Whales are nowhere even close to creating technical civilization, that's really left field. Dolphins at least occasionally do use tools, I think, but without fingers they have to use their nose for everything and it really limits them.