A geometric definition of Gabrielov numbers