ugly corpus freq counting added