I know very little about the software Magma and I know it can be used in group theory. Here I have a problem, could someone tell me whether and how to calculate it using Magma?
Here is the problem: given a fixed group $G$, I want to know the number of its subgroups of fixed order. For example, Let $G$ be a Coxeter group of $B_3$, it has generators $s_1,s_2,s_3$ with relations $s_1^2=s_2^2=s_3^2=(s_1s_2)^4=(s_1s_3)^2=(s_2s_3)^3=1$. The order of $G$ is 48. I want to know whether could we use Magma to calculate the number of subgroups of order 8, 16?
Yes you can do this, following the documentation in the magma handbook we can do https://magma.maths.usyd.edu.au/magma/handbook/text/841
This lists distinct conjugacy classes of subgroups and gives us generators in terms of the original ones $s_1,s_2,s_3$. If we just want the number of classes put a # in front:
To get the actual number of subgroups, see Derek Holt's comment above.