added spoCount to test_model.php and script