q-Version of Harer-Zagier formula