A Generating Function Approach To The Enumeration Of Matrices In Classical Groups Over Finite Fields