The umbral transfer-matrix method IV . Counting self-avoiding polygons and walks