<p>I have a menu of product brands that I want to split over 4 columns.  So if I have 39 brands, then I want the maximum item count for each column to be 10 (with a single gap in the last column.  Here's how I'm calculating the item count for a column (using C#):</p>

<pre><code>int ItemCount = Convert.ToInt32(Math.Ceiling(Convert.ToDecimal(BrandCount) / 4m));
</code></pre>

<p>All that conversion seems really ugly to me.  Is there a better way to do math on integers in C#?</p>

A longer alternative with Mod.
```
```
ItemCount = BrandCount / 4;
if (BrandCount%4 > 0) ItemCount++;
```
```