private void panelMouseClickedCount(java.awt.event.MouseEvent e) {
        if(e.getButton()==MouseEvent.BUTTON1)
        {
            boidCntLbl.setText(Integer.toString(Boidcounter.count(e.getX(),e.getY(),getRectSizeX()*10,getRectSizeY()*10,mainBoids.boids)));
            ptr.drRec(e.getX(),e.getY(),getRectSizeX()*10,getRectSizeY()*10);
            repaint();
        }
    }