Here's a way to do it just from the DynkinFirst of all, you may as well assume your diagram is connected, otherwise the order will be the product of the orders of the irreducible components. Maybe I'll assume this only works for Weyl groups, thoughfrom now on.
There is, up to scale, a unique subadditive function on the Dynkin diagramAs Nathan Reading mentioned, which we can assumeit is normalized sowell-known that its entriesthe order of the Coxeter group $W$ is $$ \#W = d_1d_2\cdots d_r$$ where $d_1,\ldots,d_r$ are positive integers with gcdthe $=1$. We can compute this using "Bert Kostant's game"degrees of $W$ (see these lecture notes for a descriptione.g. Humphreys's "Reflection groups and Coxeter groups," Section 3.9). Note we have $d_i = e_i+1$, where $e_1,\ldots,e_r$ are the exponents of this game https://www.dropbox.com/s/zipwgw3ljkr7sjd/MIT-18-218.pdf?dl=1)$W$. But it is not so clear how to immediately read off the degrees/exponents from the Dynkin diagram.
LetIn the case where $(a_1,\ldots,a_r)$ be this subadditive function. Note that we have$W$ is a Weyl group, there is a different formula for the order of $\theta = a_1\alpha_1+a_2\alpha_2+\cdots+a_r\alpha_r$ where$W$: $$ \#W = f \cdot r! \cdot a_1\cdots a_r.$$ Here $\theta$$r$ is the highest rootrank of $W$, $f$ is the index of connection, and the $\alpha_i$$a_i$ are the coefficients expressing the highest root $\theta$ as a sum of simple roots: $\theta = a_1\alpha_1 + \cdots + a_r\alpha_r$. See Section 4.9 of the aforementioned book of Humphreys, or Lam-Postnikov "Alcoved Polytopes II" for a $q$-analog.
ThenSo how can we read this information from the Coxeter numberDynkin diagram? Of course $h$$r$ is equal to $1+\sum_{i=1}^{r}a_i$ andjust the indexnumber of connectionnodes; and $f$ is the determinant of the Coxeter matrix (it is also equal to one plus the number of $a_i$ equal to one). But what about the $a_i$?
The order ofTo find the Coxeter group$a_i$ we can iteratively compute $\theta$ as follows. We start by setting $\alpha=\alpha_i$ for some simple root $\alpha_i$. As long as the height of $s_{j}(\alpha)$ for some simple reflection $s_j$ is greater than the height of $f\cdot r! \cdot a_1\cdots a_r$$\alpha$, soreplace $\alpha$ by $s_{j}(\alpha)$. Note that this can all be easily phrased algorithmically in terms of vectors in $\mathbb{Z}^r$ and rows of the previous informationCoxeter matrix, so indeed is enougheasy to determineimplement just from the orderDynkin diagram. See Theorem 13
Eventually we terminate at some $\alpha$ for which every simple reflection decreases our height.17 If the Dynkin diagram is simply laced, this $\alpha$ must be the highest root $\theta$ and then we've found the $a_i$. In the non-simply laced case, we either terminate at the highest root (if we started with a long simple root) or the highest short root (if we started at a short simple root). So we either need to make sure we start at a long simple root, or just try starting at every root to find the highest root we can.
Note that there is another description of the $a_i$ in those notesterms of additive functions on the extended Dynkin diagram (+ subadditive functions on the Dynkin diagram). Basically, $(a_0,a_1,\ldots,a_r)$ is the unique primitive additive function on the extended Dynkin diagram (where always $a_0=1$).