Javascript tracking get visit number

Hello everyone,
I want to know how can I get the visit number of my web site by using Piwik.js code? Because I want to recod this visite number in my database.
Thank you

You can get the visitorId via getVisitorId() but not the idvisit