This is just the rank nullity-theorem which states that if (and both are finite dimensional -spaces) then . So, the answer to your question is . Now, how can we prove this? It all depends upon how much machinery you have. If you're brave of heart (i.e. you have some experience with short exact sequences) you can look here. Otherwise, give us an indication of what machinery you have.