Seol mar théacs é seo: Counting subgroups in nilpotent groups and points on elliptic curves