diff --git a/flac.py b/flac.py
index 578fb27..cb6ab64 100644
--- a/flac.py
+++ b/flac.py
@@ -534,7 +534,7 @@ class FLACDec(object):
 	pictures = property(lambda x: x._pictures)
 
 	def __len__(self):
-		return self._total_samps
+		return self._totalsamples
 
 	def __init__(self, file):
 		'''Pass in the file name.  We currently do not support file objects.'''