Size of the body list

Is there a way to determine the size of a body list in the world?
(I'm still working with 1.4.3 on actionscript).

thanks in advance.
hi alonm10,

I don't think there is a direct way to access this, but an easy way to get it goes something like this:

Code:
var bodyNum =0;
for (var bb:b2Body = m_world.m_bodyList; bb; bb = bb.m_next) {
bodyNum ++;
}
trace(bodyNum);

Original thread: https://box2d.org/forum/viewtopic.php?t=583