Refined curve counting on algebraic surfaces