using length instead of .count for the active record relation