Integral Curve Counting and Applications