refactoring (slowly) : make username & count global