remove charset.alias directly
fix incorrect comment
add more documentation
only get counts if needed