You can use object.Count as an expression. To get to it in the object pane of the event window, double-click the object, and under Misc there will be "Get the number of objects." Or just type in object.Count (replacing "object" with whatever the name of your object is, of course).
+ System: Compare: object.Count is Less than 5
-> Do stuff
+ Some condition
-> Object: Set speed to object.Count*5068
-> Set text.Text to object.Count