parameters: (self, path)
return_statement: return total_counted
docstring: Returns the number of workspaces in the given directory
          :param path: String; A directory to the checkpoint
          :return: Int; Number of workspaces in the path
docstring_summary: Returns the number of workspaces in the given directory
          :param path: String; A directory to the checkpoint
          :return: Int; Number of workspaces in the path
docstring_tokens: Returns the number of workspaces in the given directory : param path : String ; A directory to the checkpoint : return : Int ; Number of workspaces in the path
function: def find_number_of_workspaces_in_directory(self, path):
          """
          Returns the number of workspaces in the given directory
          :param path: String; A directory to the checkpoint
          :return: Int; Number of workspaces in the path
          """
          if not os.path.exists(path):
              raise AttributeError("Project Recovery Model: Path is not valid")
          files = self.project_recovery.listdir_fullpath(path)
          total_counted = 0
          for file in files:
              _, file_ext = os.path.splitext(file)
              if file_ext == ".py":
                  total_counted += 1
  
          return total_counted
function_tokens: def find_number_of_workspaces_in_directory ( self , path ) : if not os . path . exists ( path ) : raise AttributeError ( "Project Recovery Model: Path is not valid" ) files = self . project_recovery . listdir_fullpath ( path ) total_counted = 0 for file in files : _ , file_ext = os . path . splitext ( file ) if file_ext == ".py" : total_counted += 1 return total_counted