add basic freq count ir

Signed-off-by: xiehuc <xiehuc@gmail.com>