On the number of restricted prime factors of an integer. I