This doesn't follow the [Joomla Coding Standards](https://github.com/joomla/coding-standards/blob/master/README.md#joomla-coding-standards) . Comments have to start with a capital letter:

`// Find maximum and minimum count`