Read loop size from stdin