Let $\omega = \bigl(\begin{smallmatrix}1 & 2 & 3 & 4 \\ 3 & 2 & 4 & 1 \end{smallmatrix}\bigr)$ and $\tau = \bigl(\begin{smallmatrix}1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 1 \end{smallmatrix}\bigr)$, both elements of $S_4$.
How exactly do I compute the orders of $\omega$ and $\tau$ ?
My professor said $\ |\omega|= 3$ and$\ |\tau|= 4$. But he did not explain how to get these answers, also why are they both not just 4? I thought order was the number of elements in G, in this case they both have 4. Does $\ |\omega|= 3$ because $\omega(2)=2$, so it sends itself to itself?
Sorry, if this question seems dumb I just don't fully understand where the answer is coming from.



The order of a group is not the same thing as the order of an element. There is a connection, but don't worry about that yet. The order of a group, written $|G|$, is the number of elements it has. The order of an element in a group - say $g \in G$, is the smallest $n$ such $g^n = e$ where $e$ is the identity element of the group $G$. In this case we also write $|g| = n$.
You are not being asked to find the order of a group. $\tau$ and $\omega$ are elements of a group and you are being asked to find the order of $\tau$ and $\omega$ as elements of $S_4$. Elements of $S_4$, such as $\tau$ and $\omega$, are bijections (functions) from the set $\{1,2,3,4\}$ to the set $\{1,2,3,4\}$. To find their order you need to investigate how many times you need to repeatedly apply the function in order to get the identity function. It doesn't really make sense to take about the order of $\tau$ and $\omega$ based on how many elements they have as you did in your original post, however we do have this.
It does turn out that if the order of an element is $n$, say $|g| = n$, then the cyclic subgroup generated by $g$ will have $n$ elements. So I guess if you wanted to find the orders of $\tau$ and $\omega$ you could go count the elements of their cyclic subgroups but this seems superfluous.