How to update bpy.data.meshes / bpy.data.armatures?

While “bpy.data.objects” seems to always show the actual amount of objects in my scene, bpy.data.meshes and bpy.data.armatures are not. They are still showing meshes or armatures which have been already deleted (newly added are included in “real-time”).

Any idea how to “update” them, so I can use the len-function to easy check the amount of meshes and armatures in my scene?

eauxfolles maybe only unlinked from scene,
you can try to remove meshes on the way explained there:
http://docs.blender.org/api/blender_python_api_2_66_release/bpy.data.html

like this:
mesh = bpy.data.meshes[“name”]
bpy.data.meshes.remove(mesh)

then probably this works for “bpy.data.armatures”:
armature = bpy.data.armatures[“name”]
bpy.data.armatures.remove(armature)