added xCount function, added details to devel about polymorphism strategy