function countProperties(o)
{
	var count = 0;
	for(property in o)
		count ++;
	return count;
}
