Children and go to next frame

Hi I am creating a breakout game and below is a part of my code:

function updateGame(e:Event) {
if (ball_mc.hitTestObject(brickone_mc)) {
beepSound.play();
yVel*=-1;
removeChild(brickone_mc);
}
if (ball_mc.hitTestObject(bricktwo_mc)) {
beepSound.play();
yVel*=-1;
removeChild(bricktwo_mc);
}
if (ball_mc.hitTestObject(brickthree_mc)) {
beepSound.play();
yVel*=-1;
removeChild(brickthree_mc);
}
if (ball_mc.hitTestObject(brickfour_mc)) {
beepSound.play();
yVel*=-1;
removeChild(brickfour_mc);
}
if (ball_mc.hitTestObject(brickfive_mc)) {
beepSound.play();
yVel*=-1;
removeChild(brickfive_mc);
}
if (ball_mc.hitTestObject(bricksix_mc)) {
beepSound.play();
xVel*=-1;
removeChild(bricksix_mc);
}
if (ball_mc.hitTestObject(bricksev_mc)) {
beepSound.play();
yVel*=-1;
removeChild(bricksev_mc);
}
if (ball_mc.hitTestObject(brickeig_mc)) {
beepSound.play();
yVel*=-1;
removeChild(brickeig_mc);
}

I have got it removing the bricks as each brick has an instance name, I am now wanting to go to an end screen once all the bricks have been removed, is there a way to count the children and then put a gotoAndStop() in?