Closes #27. Implements size() and isEmpty() in #beans