or test function directly
```php
function count_premium_templates($type = 'all') {
    if($templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml')) {
        $templates_count = $templates->children();
        echo count($templates_count);
    }
}
```