Suppose $N$ is a manifold of dimension $n$. Now a regular submanifold $S$ of $N$ of dimension $k$ is defined as, if for every point $p$ of $S$ there is a coordinate chart $(U,u_*)$ from a maximal atlas such that $U \cap S$ is defined as the vanishing of $n-k$ coordinate functions on $U$.
My question is whether the dimension of the submanifold is uniquely defined or not? If yes why is it so?