I would like to get the event count that I have attended in the last 6 months. I am using graph api /user_id/events but am not getting any results.
You can play around with debugger at https://developers.facebook.com/tools/explorer.
Ensure you granted user_events permission scope:
FQL query:
SELECT eid FROM event_member WHERE uid = me() AND rsvp_status='attending'
Example:
As you can see, only one event id is attending.
For your case, it's more complicated because you have to compare the start_time in the range of last 6 months, and do pagination by start_time(get from last item of this page) accordingly. You can set a low LIMIT number to test. Put ORDER BY start_time DESC to make sure its pagination is based on start_time, not uid or something else.
Documentation: https://developers.facebook.com/docs/reference/fql/event_member/