Stav dette: Counting subgroups in nilpotent groups and points on elliptic curves