With a 100 card deck, 50 lands, and 50 creatures, drawing a seven card hand without replacement, letting $X$ represent the random variable counting the number of lands in the opening hand the probability of getting exactly $k$ land cards (and $7-k$ creatures) will be
$$Pr(X=k)=\frac{\binom{50}{k}\binom{50}{7-k}}{\binom{100}{7}}$$
This generalizes of course:
Given an $N$ card deck with $l$ land cards and $c$ creature cards (where $l+c=N$), when drawing $d$ cards (without replacement) the probability of drawing $k$ land cards and $d-k$ creature cards will be:
$$Pr(X=k)=\frac{\binom{l}{k}\binom{c}{d-k}}{\binom{N}{d}}$$
These are calculated by direct counting methods. We may assume that each card has a unique identification in order to assist in constructing an equiprobable sample space. As such, each of the $\binom{N}{d}$ $d$-card hands are equally likely to occur. To count the number of hands with exactly $k$ lands, pick which specific $k$ lands were selected from the $l$ available and then pick which $d-k$ of the creatures were selected from the $c$ available.
Here, $\binom{n}{r}$ denotes the binomial coefficient, counting the number of ways to select a subset of $r$ things from a set of $n$ distinct objects. One has $\binom{n}{r}=\frac{n!}{r!(n-r)!}=\frac{1\cdot 2\cdot 3\cdots n}{(1\cdot 2\cdots r)(1\cdot 2\cdots (n-r))}$