api/v3 Fixing under-indentation warnings in event_counts function.

Travis CI build is still failing dur to under-indentation at the
lines where the event_counts function is declared.

Details are https://travis-ci.org/puppet-community/pypuppetdb/builds/38443403