Let $S$ be a compact connected orientable bordered surface of genus $g$ with $n$ holes (a hole is a component of the border homeomorphic to a circle). Consider a cell decomposition (the closure of each cell is a closed disk of the same dimension as the cell) with $f$ faces, $e_i$ interior edges, $e_b$ boundary edges, $v_i$ interior vertices and $v_b$ boundary vertices. Is there a function $F$ such that $g=F(f,e_i,e_b,v_i,v_b)$? If the answer is positive what is this function $F$?
The Euler characteristic gives me $2g+n$, and I want to recover $g$ and $n$ separately from $f,e_i,e_b,v_i,v_b$. A negative answer would be an example of two non-homeomorphic surfaces with cell decompositions for which the five numbers $f,e_i,e_b,v_i,v_b$ are the same.