What do we know about invertible matrices over $\mathbb{Z}$ or number fields $K$ (or even $\mathbb{Q}$) with inverses in the same ring/field? In the case where $K = \mathbb{Q}$, it is known that matrices with entries in $\mathbb{Q}$ which are invertible have inverses which also have entries in $\mathbb{Q}$. It is also clear that they contain the set of unimodular matrices, which are the matrices with integer entries with determinant $\pm 1$. As for non-diagonal invertible matrices with entries in $K$, I really don't know what they look like.
Is there anything known about estimating how many invertible matrices there are with entries of bounded size in $\mathbb{Z}$ or $\mathbb{Q}$ (assuming the fractions are in lowest terms)? For a lot of objects used in number theory, there seem to be a lot of computational work done related them. However, I couldn't find any references related to counting these objects (or even unimodular matrices).
Any suggestions for how to count these kinds of objects (in the case of $\mathbb{Q}$ or $\mathbb{Z}$) or how to characterize these kinds of matrices (e.g. some idea of entries or group structure)? Any reference related to this (or even estimates) would be helpful.
Edit: Added clarification on counting matrices. The aim of the question is to get an idea of what these matrices look like and how frequently they occur in some sense. Also, the definition of the ``size'' of an element $\frac{p}{q}$ of $\mathbb{Q}$ used here is $\max(|p|, |q|)$ (think of heights of rational points in projective space).