add count to relations and scopes

This one depends on https://github.com/strongloop/loopback-datasource-juggler/pull/212