It looks like the current dolphin implementation is ArraySize()
https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Common/CommonFuncs.h#L25

Alternatively you can use std::array and then std::array::size() :p