After seeing your CSV output, the problem is clear: you told Excel to use CR line endings, probably because it informed you that they are "Macintosh" style. That is badly outdated information, not true for over a decade now.
There are three main line ending styles:
LF: The style used by Unix and all its primary derivatives, including Mac OS X.
CR: The style chosen by "classic" Mac OS, abandoned by Apple in 2001 with the move to Mac OS X. Since classic Mac OS is the only popular OS to ever use this style, it is almost never seen any more in practice. The CSV file you have linked to is one of these rare examples.
CR+LF: The DOS/Windows style of line ending. Technically, this style is truer to the history of ASCII, and therefore "more correct," but it is uncommon to see outside of the Microsoft world.
The best way to fix this is to get Excel to use LF line endings, that being the native form for OS X, which will make wc and other command line Unix tools happy. But, that is outside the scope of this forum. (Try Super User if you really can't work it out on your own.)
An on-topic Unix command line way to fix it is:
$ tr '\r' '\n' < Layout.csv > Layout-LF.csv
(This is one of those sorts of problems that has about as many different solutions as there are people offering them.)