Curve counting via Homological mirror symmetry