Tweak size function to improve speed.

We gain about ``` 90 us ``` . Also ``` size ``` can be expressed in terms of ``` foldl ``` and gain about ``` 80 us ``` . This is a little faster but using more code.