Added animation-iteration-count property

Updated animation functions to include $count parameter for setting the
animation-iteration-count CSS property (i.e. animation-iteration-count:
infinite).