Fixed bug with wrong row count
Merge pull request #2 from nyqvist/master

Fixed bug with wrong row count