In the study of number theory (and in other branches of mathematics) presence of Hecke Algebra and Hecke Operator is very prominent.
One of the many ways to define the Hecke Operator $T(p)$ is in terms of double coset operator corresponding to the matrix $ \begin{bmatrix} 1 & 0 \\ 0 & p \end{bmatrix}$ .
On the other hand Hecke Algebra $\mathcal{H}(G,K)$ associated to a group $G$ of td-type ( topological group, such that every neighborhood of unity contains a compact open subgroup), where $K$ is a compact open subgroup of $G$ is defined as the space of locally constant compactly supported $K$ bi-invariant functions on $G$. Convolution product makes it an associative algebra.
I was told that the hecke algebra $\mathcal{H}(Gl(2,\mathbb{Q}_p) , Gl(2,\mathbb(Z)_p))$ corresponds to the classical algebra of hecke operators attached to $p$ via Satake Isomorphism Theorem. Using Satake Isomorphism theorem I can show $\mathcal{H}(Gl(2,\mathbb{Q}_p) ,Gl(2,\mathbb(Z)_p))$ is commutative and finitely generated over $\mathbb{C}$.
So my question is how one uses Satake Isomorphism Theorem (or otherwise) to see this? And secondly in general what is the relation between hecke operators and hecke algebra?