@Override
    public int getWidgetCount() {
        return widgets.size();
    }
DashBoard widgets used in responsive mode only.
primefaces/src/main/java/org/primefaces/model/dashboard/DefaultDashboardWidget.java