#NEWLINE# @ property #NEWLINE# def count( self ) : #NEWLINE# #INDENT# '\n        Calculates the actual count for the current command.\n        ' #NEWLINE# c = 1 #NEWLINE# if self . action_count : #NEWLINE# #INDENT# c = ( int ( self . action_count ) or 1 ) #NEWLINE# #UNINDENT# if self . motion_count : #NEWLINE# #INDENT# c *= ( int ( self . motion_count ) or 1 ) #NEWLINE# #UNINDENT# if ( c < 1 ) : #NEWLINE# #INDENT# raise ValueError ( 'count must be positive' ) #NEWLINE# #UNINDENT# return c