changing "count.png" to "Count.png"

What's the trick to getting MacOS to behave in a more unix-like fashion about case in filenames?  It seems to adhere to different rules at different times with bafflingly arbitrary results.