Implementation of llGetLinkNumberOfSides() is expected in OpenSim 0.7.2
Under the “Scripting” heading in OpenSim’s 0.7.2 Release Notes is an entry indicating the implementation of llGetLinkNumberOfSides(). You can get the latest Release Candidate build from OpenSim’s Downloads page.