Assuming that you’re only using the counter to decide what style to use, the easiest way to achieve what you want would be to reset the $count variable once it gets to 4.
<?php elseif ($count == 4) : ?>
<div>Styled post 4</div>
<?php $count = 0; ?>
<?php else : ?>