If you're going to split the declaration and the assignment into `module.exports`, maybe you should do it for every function and just assign like so at the EOF:

```javascript
module.exports = {
  countByComponent: countByComponent,
  overallCount: overallCount,
  ...
}
```