Inlined Bom.size() method.