Computer generation and enumeration of compact self-avoiding walks within simple geometries on lattices