find count of an elen=ment in an array java code example Example: java count elements in array int count = arr.length;