private int getRows(String tabla) {
        int rows = -1;
        try {
            PreparedStatement pstm = (PreparedStatement) conectar().prepareStatement("SELECT count(1) as total FROM " + tabla);
            ResultSet res = pstm.executeQuery();
            res.next();
            rows = res.getInt("total");
            res.close();
        } catch (SQLException e) {
            System.out.println("Problemas al obtener numero de Filas: " + e);
        }
        return rows;
    }