Counting sum-free sets in abelian groups