Added functions

Added count and countIgnoreCase