The following code works

```
Integer i = [select count() from Account];
System.debug(i);

```

But the code below results in and error: "Illegal assignment from LIST to Integer LINE: 1 COLUMN: 1"

```
Integer i = [select count(Id) from Account];
System.debug(i);

```

Why is this?