Enumerative geometry of knot homologies