code: public static int getRotationCount(EnumFacing facing)
  	{
  		if (facing == null)
  			return 0;
  
  		switch (facing)
  		{
  			case EAST:
  				return 1;
  			case NORTH:
  				return 2;
  			case WEST:
  				return 3;
  			case SOUTH:
  			default:
  				return 0;
  		}
  	}
docs: Gets the rotation count for the facing.
  
  @param facing the facing
  @return the rotation count