Make sure where object is built for count/destroyAll

See https://github.com/strongloop/loopback/issues/248
Merge pull request #28 from strongloop/feature/lb-issue-248

Make sure where object is built for count/destroyAll