4 Nov 2011 ... Definition. The count() function counts the elements of an array, or the properties of an object.