Fixed a PHP warning with count_layout. Also added some spacing