Why wouldn't this work?
*in page.ss
<div class=" show$Opt(Count) half$Opt(Half) clearfix">
*in page_controller of Page.php
public function getOpt($opt = 'Count'){
switch($opt):
case('Count'):
return foo;
break;
case('Half'):
return bar;
break;
endswitch;
}