- replace numRows() calls
- fixing some namespace and syntax issues
Merge pull request #323 from owncloud/remove-numRows-master

- replace numRows() calls