fix bugs, fix search count error; add bash for grouping into different months