Rename count to max to properly reflect it's intent