In Lua, there are playdate.graphics.imagetable:getLength() and its alias #playdate.graphics.imagetable. This probably proves that there is a use case, otherwise they wouldn't have been added.
It just so happens that the first element of the LCDBitmapTable struct is a uint16_t containing the number of images. Simply do this to get the length: