Motivated by mirror symmetry, we study the counting of open curves in log Calabi-Yau surfaces. Although we start with a complex surface, the counting is achieved by applying methods from Berkovich geometry (non-archimedean analytic geometry). This gives rise to new geometric invariants inaccessible by classical methods. These invariants satisfy a list of very nice properties and can be computed explicitly. I will mention the conjectural wall-crossing formula, relations with the works of Gross-Hacking-Keel and applications towards mirror symmetry.