set default value for $count