write GTest code for  the given functions in below source code
#include "simpledbus/base/Path.h"

#include <algorithm>

namespace SimpleDBus 
{


size_t Path::count_elements(const std::string& path) 
{
    if (path.empty() || path == "/") 
	{
        return 0;
    }

    return std::count(path.begin(), path.end(), '/');
}

}