Curve counting on abelian surfaces and threefolds