java size of stack

Java
stackname.size()
Source

Also in Java: