# I&#39;m trying to display this count in a custom object. Is there some logic I need to include?

How do I count the number of times that a lead has become an MQL

##### Post Metadata
- Posted at: over 7 years ago
- Net upvotes: 1


## Comments
### Comment 1

Hi,

Not sure why you want to store this number in a &#39;custom object&#39;. May be you mean a &#39;custom field&#39;.

Simpler way is to create a custom field of type &#39;score&#39; (not integer) on the lead level, say &#39;Number of times became MQL&#39; 

And then create a smart campaign that increments this field every time the lead becomes MQL.

May be you might have a lead becoming MQL when score becomes more than 100 say. And I am assuming you are going to reset the score to say 0 when some one becomes MQL, and then start counting again...

So 
Create a smart campaign on
Data value changed - Lead Score became 100 or more previous value was 99 or less.

Flow action 
Change Score &#39;select the field you created&#39; and Change &#39;+1&#39;.

Why Score type field and why not integer?
If we choose integer field, we can not &#39;increment&#39; it using Marketo flow step. There is no step in Marketo to increment an integer field.
We will have to use a &#39;score&#39; field and a &#39;change score&#39; flow step.

Hope this helps. Please feel free to reach out if you have questions...

Rajesh Talele



##### Comment Metadata
- Posted at: over 7 years ago
- Author title: 3x Marketo Champion | 4x Marketo Certified | Marketo, SFDC, LeanData | Programming, Integration | Independent Consultant
- Net upvotes: 1



## Related Product
[Adobe Marketo Engage](https://www.g2.com/products/adobe-marketo-engage/reviews)

## Related Category
[Marketing Automation](https://www.g2.com/categories/marketing-automation)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: over 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


