'Get count of Project'

def get_project_count(self):

    return frappe.db.sql(u"select    count(*)    from    `tabProject`\n DCTB  DCTB  DCTB where    status='Open'    and    project_type='External'")[0][0]
