The trace of Frobenius as a way from the geometric to the classical