This version of Unity is unsupported.

Selection.count

public static int count;

Description

Returns the number of objects in the Selection.