simple jpeg freq counter