add log4j.properties
count line
fix bugs