Add len() to coordinates

Closes #1761