Good question. Sometimes Amazon does, and sometimes Amazon does not, even within the same product category. Or sometimes it will mix and match the unit. For example, sometimes they will provide the price per ounce for K-cups, and other times, it will provide the price per cup. Not very useful when wanting to do a comparison.
For each of these items that I list, I have manually audited the unit count (after usually automatically doing an initial guess). For many, there's not even an automatic guess, so I have to read the description, look at the photo, etc., in order to determine the unit count.