Counting invertible matrices and uniform distribution