ODatabase.getSize() is deprecated?

ODatabase.getSize() is marked as deprecated, but there does not seem to be any details as to why, or what the recommended alternative might be. Can anyone shed some light on this?