Refactor directory.rb student count