Use stdout to print count on same line
Fix addresses