Removed numRows usage from encryption app

numRows on Oracle always seem to return 0.

This fix removes numRows usage from the encryption and sharing app.

This fixes unit tests and potentially the encryption app itself
(migration status) when running on Oracle

Forward port of https://github.com/owncloud/core/pull/6498

The Oracle tests fail for me locally... let's hope it's an env issue.