Linear algebraic groups and number of points mod p.